package com.bwie.common.pojo;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 秒杀订单表
 * </p>
 *
 * @author liuxin
 * @since 2025-04-21
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("t_seckill")
@ApiModel(value="TSeckill对象", description="秒杀订单表")
public class Seckill implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "秒杀订单表")
    @TableId(value = "seckill_goods_id", type = IdType.AUTO)
    private Long seckillGoodsId;

    @ApiModelProperty(value = "秒杀订单单号")
    private String seckillGoodsNo;

    @ApiModelProperty(value = "用户id")
    private Long userId;

    @ApiModelProperty(value = "商品id")
    private Long goodsSkuId;

    @ApiModelProperty(value = "秒杀时间")
    private LocalDateTime seckillTime;

    @ApiModelProperty(value = "秒杀金额")
    private BigDecimal seckillPrice;

    @ApiModelProperty(value = "秒杀状态0完成1失败")
    private Integer seckillStatus;

    @ApiModelProperty(value = "创建时间")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "修改时间")
    private LocalDateTime updateTime;

    @ApiModelProperty(value = "逻辑删除0存在1删除")
    private Integer isDeleted;


}
